let img = document.querySelector('#img')

if (img) {
  (img as HTMLImageElement).src
}
